package fyzh.mongoservice

class UrlMappings {

    static mappings = {
        "/$controller/$action?/$id?(.$format)?"{
            constraints {
                // apply constraints here
            }
        }
        "/mongoTest/save/api"(controller: 'mongoTest',action: 'save')
        "/mongoTest/findAll/api"(controller: 'mongoTest',action: 'findAll')
        "/mongoTest/saveMap/api"(controller: 'mongoTest',action: 'saveMap')
        "/mongoTest/find/api"(controller: 'mongoTest',action: 'find')
        "/mongoTest/update/api"(controller: 'mongoTest',action: 'update')
        "/mongoTest/remove/api"(controller: 'mongoTest',action: 'remove')



        "/"(view:"/index")
        "500"(view:'/error')
        "404"(view:'/notFound')
    }
}
